﻿using System.Collections.Generic;

namespace DataFiller.DataStorage.Extension.ExcelOperator
{
    public interface IExcelSheet : IEnumerable<IExcelRow>
    {
        string SheetName { get; }
        int RegionCount { get; }

        /// <summary>
        /// fill data loaded from excel sheet into datamap
        /// </summary>
        void SheetHandler(IExcelbook templateBook, ExportContext context);
        IExcelRow GetOrCreateRowByIndex(int rownumber);
        IExcelRow GetRow(int rowNumber);
        IExcelRow CreateRow(int rownumber);

        void CopyRegion(object region);
    }
}
